Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.5.2 #53

Merged
merged 6 commits into from
Jul 26, 2016
Merged

Release 0.5.2 #53

merged 6 commits into from
Jul 26, 2016

Conversation

nhaarman
Copy link
Collaborator

MicahZoltu and others added 6 commits July 21, 2016 15:43
Since `Mockito.mock` is a Java function it returns a Kotlin platform type.  By adding an explicit return type to the wrapper, the kotlin version of `mock` will now return a non-platform type.  In this case, we know that `Mockito.mock` doesn't return null so we can safely make the wrapper return a non-null type.  We add the `!!` to make it clear to the reader our intent is to strip the platform type at this point, and also make the Kotlin compiler add an explicit null-check "just in case" before returning from the kotlin `mock` method.
Makes `mock` return non-null types.
@nhaarman nhaarman merged commit a6f8604 into master Jul 26, 2016
@nhaarman nhaarman deleted the release-0.5.2 branch July 26, 2016 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants